﻿using System;
namespace Travel.Model
{
	/// <summary>
	/// order:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class orders
	{
		public orders()
		{}
		#region Model
		private Guid _id;
		private string _code;
		private int _route_id;
		private int? _buyer_id;
		private string _buyer_name;
		private string _buyer_phone;
		private string _traveller_name;
		private string _travller_phone;
		private DateTime _buy_time;
		private DateTime _travel_time;
		private decimal _cost;
		private int _status;
		private DateTime _created_on;
		private DateTime? _changed_on;
		private string _changed_by;
		/// <summary>
		/// 订单主键
		/// </summary>
		public Guid id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 订单号
		/// </summary>
		public string code
		{
			set{ _code=value;}
			get{return _code;}
		}
		/// <summary>
		/// 线路id
		/// </summary>
		public int route_id
		{
			set{ _route_id=value;}
			get{return _route_id;}
		}
		/// <summary>
		/// 购买者id
		/// </summary>
		public int? buyer_id
		{
			set{ _buyer_id=value;}
			get{return _buyer_id;}
		}
		/// <summary>
		/// 购买者姓名
		/// </summary>
		public string buyer_name
		{
			set{ _buyer_name=value;}
			get{return _buyer_name;}
		}
		/// <summary>
		/// 购买者手机号
		/// </summary>
		public string buyer_phone
		{
			set{ _buyer_phone=value;}
			get{return _buyer_phone;}
		}
		/// <summary>
		/// 游玩者姓名
		/// </summary>
		public string traveller_name
		{
			set{ _traveller_name=value;}
			get{return _traveller_name;}
		}
		/// <summary>
		/// 游玩者手机号
		/// </summary>
		public string travller_phone
		{
			set{ _travller_phone=value;}
			get{return _travller_phone;}
		}
		/// <summary>
		/// 购买时间
		/// </summary>
		public DateTime buy_time
		{
			set{ _buy_time=value;}
			get{return _buy_time;}
		}
		/// <summary>
		/// 旅行时间
		/// </summary>
		public DateTime travel_time
		{
			set{ _travel_time=value;}
			get{return _travel_time;}
		}
		/// <summary>
		/// 花费
		/// </summary>
		public decimal cost
		{
			set{ _cost=value;}
			get{return _cost;}
		}
		/// <summary>
		/// 订单状态 0 未付款 1 已付款
		/// </summary>
		public int status
		{
			set{ _status=value;}
			get{return _status;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime created_on
		{
			set{ _created_on=value;}
			get{return _created_on;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? changed_on
		{
			set{ _changed_on=value;}
			get{return _changed_on;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string changed_by
		{
			set{ _changed_by=value;}
			get{return _changed_by;}
		}
		#endregion Model

	}
}

